package com.songchaojie.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Goods {

    private Integer gid;

    private String gname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    private Integer cid;

    private String cname;

    public Goods() {
    }

    public Goods(Integer gid, String gname, Date createTime, Date updateTime, Integer cid, String cname) {
        this.gid = gid;
        this.gname = gname;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.cid = cid;
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", cid=" + cid +
                ", cname='" + cname + '\'' +
                '}';
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
}
